package day05;
import java.util.Scanner;
public class Addition {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int score=0;
        for (int a=1;a<=10;a++){
            int num1=(int) (Math.random()*100+1);
            int num2=(int) (Math.random()*100+1);
            System.out.println("("+a+")"+num1+"+"+num2+"="+"?"  );
            System.out.println("请答题：");
            int answer=scan.nextInt();
            if (answer==num1+num2){
                System.out.println("cure");
                score+=10;
            }else {
                System.out.println("fasle");
            }
        }
        System.out.println("总分为："+score);




    }
}
